package com.banksoft.admin.entity;

import com.banksoft.util.DateUtil;

/**
 * Created by Administrator on 2016/5/10.
 */
public class AmountLog {

    private String id;
    private String userId;//用户id
    private String userName;//昵称
    private String dataId;//对象id
    private String dataName;//对象name
    private String type;//流水类型
    private String beforeCash;//变动前现金金额
    private String beforeBonus;
    private String beforeFrozenAmount;
    private String cash;//变动现金
    private String bonus;//变动购物
    private String afterCash;//变动后的现金
    private String afterBonus;//变动后的购物
    private String afterFrozenAmount;
    private Long createTime;
    private String timeStr;
    //不映射数据库
    private String userAccount;


    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getBeforeFrozenAmount() {
        return beforeFrozenAmount;
    }

    public void setBeforeFrozenAmount(String beforeFrozenAmount) {
        this.beforeFrozenAmount = beforeFrozenAmount;
    }

    public String getAfterFrozenAmount() {
        return afterFrozenAmount;
    }

    public void setAfterFrozenAmount(String afterFrozenAmount) {
        this.afterFrozenAmount = afterFrozenAmount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBeforeCash() {
        return beforeCash;
    }

    public void setBeforeCash(String beforeCash) {
        this.beforeCash = beforeCash;
    }

    public String getBeforeBonus() {
        return beforeBonus;
    }

    public void setBeforeBonus(String beforeBonus) {
        this.beforeBonus = beforeBonus;
    }

    public String getCash() {
        return cash;
    }

    public void setCash(String cash) {
        this.cash = cash;
    }

    public String getBonus() {
        return bonus;
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    public String getAfterCash() {
        return afterCash;
    }

    public void setAfterCash(String afterCash) {
        this.afterCash = afterCash;
    }

    public String getAfterBonus() {
        return afterBonus;
    }

    public void setAfterBonus(String afterBonus) {
        this.afterBonus = afterBonus;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getTimeStr() {
        if(createTime!=null)
            return DateUtil.getDateFromLong(createTime);
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }
}
